<?php
/**
 * Clase DP para PoRecepcionLineaDP
 *
 * @package    
 * @subpackage PoRecepcionLineaDP
 * @author     hans
 * @version    SVN:: PoRecepcionLineaDP.class.php,v 1.1 2012-03-18 20:30:44 Hans.parra Exp $
 */

require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/common/conexion.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/im/mov/BDP/BasePoRecepcionLineaDP.class.php');

class PoRecepcionLineaDP extends BasePoRecepcionLineaDP
{

  public function eliminarPoRecpDetalle()
  {
    try 
    {
        $o_conexion = new BaseDatos();
        $con = $o_conexion->conectar();
        $sql = "DELETE FROM po_recepcion_linea WHERE 1 AND rcpl_recepcionId='".$this->getRcpId()."';"; 
        $result = mysql_query($sql);
        
        return true;
        
    }catch ( Exception $o_Error )
    {
      throw new Exception($o_Error->getMessage().' en '.$o_Error->getFile().' linea '.$o_Error->getLine());
    }
  }

}